package com.bole.feign;

import com.bole.dto.img.DicImgTypeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "BOLECAR-BACKSTAGE-SERVICE")
public interface DicImgTypeFeign {
    @GetMapping("/imgtype/getImgTypeInfo")
    List<DicImgTypeDto> getImgTypeInfo();
    @PostMapping("/imgtype/saveImgTypeInfo")
    void saveImgTypeInfo(@RequestBody DicImgTypeDto dicImgTypeDto);
    @PostMapping("/imgtype/toUpdate")
    DicImgTypeDto toUpdate(@RequestParam("id") Integer id);
    @PostMapping("/imgtype/updateImgTypeInfo")
    void updateImgTypeInfo(@RequestBody DicImgTypeDto dicImgTypeDto);
    @PostMapping("/imgtype/deleteBatch")
    void deleteBatch(@RequestParam("idss")List<Integer> idss);


    @PostMapping("/imgtype/getTypeById")
    DicImgTypeDto getTypeById(@RequestParam("id")Long id);
}
